package cn.aitrox.ry.service.auth.mapper;

import cn.aitrox.ry.service.auth.entity.AuthPermissionResourceEntity;
import com.github.abel533.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthPermissionResourceMapper extends Mapper<AuthPermissionResourceEntity> {

    void batchInsert(@Param("list") List<AuthPermissionResourceEntity> list);

    void deleteByPermissionIdResourceIds(@Param("permissionId") Integer permissionId, @Param("resourceIds") List<Integer> resourceIds);

    List<AuthPermissionResourceEntity> findByPermissionIds(@Param("permissionIds") List<Integer> permissionIds);
}
